package czy.demo.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.data.hadoop.config.common.annotation.AnnotationBuilder;
import org.springframework.data.hadoop.config.common.annotation.ObjectPostProcessor;
import org.springframework.data.hadoop.store.config.annotation.EnableDataStorePartitionTextWriter;
import org.springframework.data.hadoop.store.config.annotation.EnableDataStoreTextWriter;
import org.springframework.data.hadoop.store.config.annotation.SpringDataStoreTextWriterConfigurerAdapter;
import org.springframework.data.hadoop.store.config.annotation.SpringDataStoreWriterConfigs;
import org.springframework.data.hadoop.store.config.annotation.builders.DataStoreTextWriterConfigurer;
import org.springframework.data.hadoop.store.config.annotation.builders.SpringDataStoreTextWriterBuilder;

/**
 * 数据存储配置
 */
@Configuration
@EnableDataStoreTextWriter
@EnableDataStorePartitionTextWriter
public class SpringDataStoreConfig extends SpringDataStoreTextWriterConfigurerAdapter {

    @Override
    public void configure(SpringDataStoreTextWriterBuilder builder) throws Exception {
        super.configure(builder);
    }

    @Override
    public boolean isAssignable(AnnotationBuilder<SpringDataStoreWriterConfigs> builder) {
        return super.isAssignable(builder);
    }

    @Override
    public void configure(DataStoreTextWriterConfigurer writer) throws Exception {
        super.configure(writer);
    }

    @Override
    public void setObjectPostProcessor(ObjectPostProcessor<Object> objectPostProcessor) {
        super.setObjectPostProcessor(objectPostProcessor);
    }
}
